package com.zsk.shop.model.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author ljh
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WaitDeliveryOrderExportModel extends BaseRowModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @ExcelProperty(value = "订单编号", index = 0)
    @ApiModelProperty(name = "orderNo", value = "订单编号", dataType = "String")
    private String orderNo;

    @ExcelProperty(value = "收货人姓名", index = 1)
    @ApiModelProperty(name = "name", value = "收货人姓名", dataType = "String")
    private String name;

    @ExcelProperty(value = "收货人手机", index = 2)
    @ApiModelProperty(name = "phone", value = "收货人手机", dataType = "String")
    private String phone;

    @ExcelProperty(value = "收货详细地址", index = 3)
    @ApiModelProperty(name = "addressDetail", value = "收货详细地址", dataType = "String")
    private String addressDetail;

    @ExcelProperty(value = "收货详细", index = 4)
    @ApiModelProperty(name = "address", value = "收货详细", dataType = "String")
    private String address;

    @ExcelProperty(value = "商品名称", index = 5)
    @ApiModelProperty(name = "goodsName", value = "商品名称", dataType = "String")
    private String goodsName;

    @ExcelProperty(value = "规格名称", index = 6)
    @ApiModelProperty(name = "skuName", value = "规格名称", dataType = "String")
    private String skuName;

    @ExcelProperty(value = "购买商品数量", index = 7)
    @ApiModelProperty(name = "goodsNumber", value = "购买商品数量", dataType = "Integer")
    private Integer goodsNumber;

    @ExcelProperty(value = "订单备注", index = 8)
    @ApiModelProperty(name = "remarks", value = "订单备注", dataType = "String")
    private String remarks;

    @ExcelProperty(value = "商品图片", index = 9)
    @ApiModelProperty(name = "img", value = "商品图片", dataType = "String")
    private String img;

    @ExcelProperty(value = "订单金额", index = 10)
    @ApiModelProperty(name = "amount", value = "订单金额", dataType = "BigDecimal")
    private BigDecimal amount;

    @ExcelProperty(value = "实付金额", index = 11)
    @ApiModelProperty(name = "payAmount", value = "实付金额", dataType = "BigDecimal")
    private BigDecimal payAmount;

    @ExcelProperty(value = "支付时间", index = 12)
    @ApiModelProperty(name = "payTime", value = "支付时间", dataType = "Date")
    private Date payTime;

    @ExcelProperty(value = "创建订单时间", index = 13)
    @ApiModelProperty(name = "createTime", value = "创建订单时间", dataType = "Date")
    private Date createTime;

//    @ExcelProperty(value = "订单状态", index = 5)
//    @ApiModelProperty(name = "orderStatusStr", value = "订单状态", dataType = "String")
//    private String orderStatusStr;

    @ExcelProperty(value = "是否订单处于售后", index = 14)
    @ApiModelProperty(name = "isRefund", value = "是否订单处于售后", dataType = "Boolean")
    private Boolean isRefund;

}
